@use '@/styles/variables' as *;

.login {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: $primary-background-color;

  h3 {
    text-align: center;
    padding: 7vh 0;
    font-weight: bold;
    font-size: 3vh;
  }

  .main {
    height: 50vh;
    border-radius: 10px;
    background-color: #fff;
  }
}

.form {
  width: 30vw;
  height: 30vh;

  .input {
    text-align: center;
    height: 6vh;
  }

  .btn {
    text-align: center;
    padding-top: 2vh;
  }

  :global(.ant-form-item) {
    display: flex;
    justify-content: center;
  }
}


.captcha {
  margin-bottom: 24px;
}

.captchaTrigger {
  padding: 10px 15px;
  background: #f0f2f5;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s;

  &:hover {
    border-color: #1890ff;
    color: #1890ff;
  }
}


/* 验证码弹窗样式 */
.captchaModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.captchaContent {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.captchaHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 20px;
  margin: 10px 0;
  border-bottom: 1px solid #f0f0f0;

  h4 {
    font-size: 18px;
    color: #333;
  }
}

.closeButton {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

/* 验证码组件内部样式 */
:global {
  .sliderContainer {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .refreshIcon {
    top: 10px;
    right: 10px;
    background: #eeeeee90;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 1s;

    &::after {
      content: '\27F3';
      display: inline-block;
      width: 18px;
      height: 18px;
      font-size: 26px;
      transform: translateY(-50%);
      font-family: Arial;
      color: #1890ff;
    }
  }
}